--- a/src/main.c	2019-07-16 01:20:44.000000000 +0200
+++ b/src/main.c	2019-08-03 19:01:32.885299932 +0200
@@ -22,6 +22,9 @@
 
 #include "config.h"
 
+#if !defined(__GLIBC__)
+#include <locale.h>
+#endif
 #include <girepository.h>
 #include <glib/gi18n.h>
 #include <libide-core.h>
